@echo off
REM 项目打包脚本

REM 安装依赖
pip install -r backend\requirements.txt

REM 创建部署目录
mkdir package 2>nul

REM 复制必要文件
:: 将前端文件整合到后端
xcopy frontend\*.* backend\templates /Y
xcopy frontend\css backend\static\css /E /I
xcopy frontend\js backend\static\js /E /I
xcopy backend package\backend /E /I
copy README.md package\

REM 生成压缩包
powershell Compress-Archive -Path package\* -DestinationPath release.zip

echo 打包完成！生成文件：release.zip